package org.interview.reflection.hashcode;

import java.util.ArrayList;
import java.util.List;

public class PojoGenerator {

	public static List<PojoCorrectHC> generatePojoCorrectHCList(long count) {
		List<PojoCorrectHC> pojoList = new ArrayList<PojoCorrectHC>();

		for (long i = 0; i < count; i++) {
			PojoCorrectHC pojoCorrectHC = new PojoCorrectHC();
			pojoCorrectHC.setId(i + 1);
			pojoCorrectHC.setName(String.valueOf(i + 1));
			pojoList.add(pojoCorrectHC);
		}

		System.out.println("PojoList generated, size=" + pojoList.size());

		return pojoList;
	}
	
	

	public static List<PojoHashCodeEquals0> generatePojoHashCodeEquals0(long count) {
		List<PojoHashCodeEquals0> pojoList = new ArrayList<PojoHashCodeEquals0>();

		for (long i = 0; i < count; i++) {
			PojoHashCodeEquals0 pojoCorrectHC = new PojoHashCodeEquals0();
			pojoCorrectHC.setId(i + 1);
			pojoCorrectHC.setName(String.valueOf(i + 1));
			pojoList.add(pojoCorrectHC);
		}

		System.out.println("PojoList generated, size=" + pojoList.size());

		return pojoList;
	}
	
	public static List<PojoIncorrectHC> generatePojoIncorrectHC(long count) {
		List<PojoIncorrectHC> pojoList = new ArrayList<PojoIncorrectHC>();

		for (long i = 0; i < count; i++) {
			PojoIncorrectHC pojoIncorrectHC = new PojoIncorrectHC();
			pojoIncorrectHC.setId(i + 1);
			pojoIncorrectHC.setName(String.valueOf(i + 1));
			pojoList.add(pojoIncorrectHC);
		}

		System.out.println("PojoList generated, size=" + pojoList.size());

		return pojoList;
	}
	
	
}
